package org.vshe.improve.hibernate.recipes;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

public class JPASessionManager {
	public static EntityManager getEntityManager() {
		EntityManagerFactory emf = Persistence.createEntityManagerFactory("book");
		EntityManager em = emf.createEntityManager();
		return em;
	}
}
